package pers.cyw.oraclejavaproject.domain;

import java.io.*;
import java.time.LocalDateTime;
import java.util.Scanner;

public class User {
    private int id;
    private String password;
    private String name;
    private String sex;
    private LocalDateTime date;
    public User() {
        super();
    }
    public User(int id, String password, String name, String sex, LocalDateTime date) {
        super();
        this.id = id;
        this.password = password;
        this.name = name;
        this.sex = sex;
        this.date = date;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", date=" + date +
                '}';
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public LocalDateTime getDate() {
        return date;
    }
    public void setDate(LocalDateTime date) {
        this.date = date;
    }
}
class De{
    public static void main(String [] e){
//        int [] a = {1,3,5,7,9,11,13,15};
//        Scanner in = new Scanner(System.in);
//        int s = in.nextInt();
//        for(int i=0;i<a.length;i++){
//            if(a[i]==s){
//                System.out.println(i);
//                return;
//            }
//        }
//        System.out.println("-1");
        File f = new File("C:\\A.jpg");
        byte [] b = new byte[1024];
        try(FileInputStream is = new FileInputStream(f);
            FileOutputStream os = new FileOutputStream("D:\\A1.jpg")) {
             while (is.read(b)!=-1){
                 os.write(b);
             }
        } catch (FileNotFoundException e1) {
            e1.printStackTrace();
        } catch (IOException e1) {
            e1.printStackTrace();
        }
    }
}